package com.tiancikeji.zaoke.app.dao.user;

import java.util.Date;
import java.util.List;

import com.tiancikeji.zaoke.app.model.user.User;

public interface UserDao {

	public User getUserInfo(long userid);

	public long addAutoUser(User user);

	public boolean updateCardIdByUserId(String cId,  Double money, long userId);

	public boolean updateUserPhoneNPassword(User user);

	public int getPhoneCount(String phone, Object[] states);

	public List<User> getUsersByPhone(String phone, String password, Object[] states);

	public boolean updatePassword(String password, User user);

	public void updateOrderTimeNZoneIdByUserId(long userId, Date orderTime, long zoneId, int payway);

	public boolean rename(String name, User user);

	public boolean updateMoney(long userId, double money, double balance);

	public boolean updateMoney(long userId, double money);

}
